<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "infor".
 *
 * @property int $id
 * @property int $t_id
 * @property int $type
 * @property string $message
 * @property string $time
 */
class Infor extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'infor';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['t_id'], 'required'],
            [['t_id', 'type'], 'integer'],
            [['time'], 'safe'],
            [['message'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            't_id' => 'T ID',
            'type' => 'Type',
            'message' => 'Message',
            'time' => 'Time',
        ];
    }
}
